package cqie;

import java.util.HashMap;
import java.util.Scanner;

public class test {
    static void ss(){
        System.out.println(222);
    }
     test(){
        System.out.println(22);
    }

    public static String test1(String str) {
//        meiju meiju = new meiju();
//        meiju.daxiao = cqie.meiju.size.m;
        String tempStr = "";
        try {
            tempStr = new String(str.getBytes("ISO-8859-1"), "GBK");
            tempStr = tempStr.trim();
            System.out.println(tempStr);
        } catch (Exception e) {
            System.err.println(e.getMessage());
        }
        return tempStr;
    }

    public static void main(String[] args) {
        test1("111");
        StringBuffer  a = new StringBuffer(1);
        HashMap hashMap = new HashMap();
        hashMap.put("1","1");


        Scanner scanner = new Scanner(System.in);


        String b = scanner.nextLine();
        String[] c = b.split(" ");


        System.out.println(c.length);
        for (int i = 0; i < c.length; i++) {
            System.out.println(c[i]);
        }
    }


}